package com.fc.advbox.service.impl;

import com.fc.advbox.dao.EquipmentDao;
import com.fc.advbox.dao.EquipmentMaintainDao;
import com.fc.advbox.dao.EquipmentRentDao;
import com.fc.advbox.entity.EquipmentEntity;
import com.fc.advbox.entity.EquipmentMaintainEntity;
import com.fc.advbox.entity.EquipmentRentEntity;
import com.fc.advbox.service.IEquipmentMaintainService;
import com.fc.advbox.service.IEquipmentRentService;
import com.fc.advbox.utils.Constant;
import com.fc.advbox.utils.RRException;
import com.google.common.collect.Maps;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created by E7450 on 2018/6/21.
 */
@Service("equipmentRentService")
public class EquipmentRentServiceImpl implements IEquipmentRentService {

    @Autowired
    private EquipmentRentDao equipmentRentDao;

    @Override
    public List<EquipmentRentEntity> queryList(Map<String, Object> params) {
        return equipmentRentDao.queryList(params);
    }

    @Override
    public EquipmentRentEntity queryObject(Long id) {
        return equipmentRentDao.queryObject(id);
    }

    @Override
    public void save(EquipmentRentEntity equipmentRentEntity) {
        equipmentRentDao.save(equipmentRentEntity);
    }

    @Override
    public void update(EquipmentRentEntity equipmentRentEntity) {
        // 更新维修信息
        equipmentRentDao.update(equipmentRentEntity);

    }

    @Override
    public void delete(Long eRentId) {
        equipmentRentDao.delete(eRentId);
    }

    @Override
    public void deleteBatch(Long[] eRentIds) {
        equipmentRentDao.deleteBatch(eRentIds);
    }
}
